const express = require('express')

const router = express.Router()


const BookMessage = require('../router_handler/Book')

//加入书籍信息
router.post('/setBookMessage', BookMessage.setBook)
//查询书籍信息
router.post('/getBookMessage', BookMessage.getBook)
//查看单个书籍
router.post('/chooseBookMessage', BookMessage.chooseBook)
// 删除某个书籍
router.post('/deleteBook', BookMessage.deleteBook)
//条件筛选
router.post('/screenBook', BookMessage.screenBook)
//借书
router.post('/lendBook', BookMessage.lendBook)
//根据用户id借书
router.post('/getBookById', BookMessage.getBookById)
//用户进行还书
router.post('/returnBook', BookMessage.returnBook)
//用户查询借还书记录
router.post('/bookRecord', BookMessage.bookRecord)
//获取图片
router.post('/getimg',BookMessage.getimg)
//还书
router.post('/backBook',BookMessage.backBook)

module.exports = router